/**
 * @author YinHang
 * 返回初始化数据的方法: 首先，返回一个方法引用，这个方法必须接受一个方法引用作为一个参数.这个唯一的参数是一个接收数据的回调函数.
 */
return function (callback) {
	//从google weather获取天气
	oacore.Data.requestProxy({
		url: "http://www.google.com/ig/api?hl=zh-cn&weather=Beijing",
		dataType: "text",
		error: function () {
			callback(undefined);
		},
		success: function (data) {
			eval("data = " + data + ";");
			var g = $.util.xmlDomSelector;
			var xmlDom = $.util.toXmlDom(data);
			var conditions = g(xmlDom, "forecast_conditions");
			var imgPath = "http://www.google.com";
			var weather = {
				today: {
					img: imgPath + g(conditions[0], "icon")[0].getAttribute("data"),
					title: g(conditions[0], "condition")[0].getAttribute("data"),
					temp: [g(conditions[0], "low")[0].getAttribute("data"), g(conditions[0], "high")[0].getAttribute("data")]
				},
				tomorrow: {
					img: imgPath + g(conditions[1], "icon")[0].getAttribute("data"),
					title: g(conditions[1], "condition")[0].getAttribute("data"),
					temp: [g(conditions[1], "low")[0].getAttribute("data"), g(conditions[1], "high")[0].getAttribute("data")]
				},
				aft: {
					img: imgPath + g(conditions[2], "icon")[0].getAttribute("data"),
					title: g(conditions[1], "condition")[0].getAttribute("data"),
					temp: [g(conditions[2], "low")[0].getAttribute("data"), g(conditions[2], "high")[0].getAttribute("data")]
				}
			};
			callback(weather);
		}
	});
};

